package com.ruoyi.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.WorkProfession;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 【专业】Mapper接口
 *
 * @author ruoyi
 * @date 2024-08-14
 */
@Mapper
public interface WorkProfessionMapper extends BaseMapper<WorkProfession>
{
    /**
     * 查询专业
     *
     * @param id 专业主键
     * @return 专业
     */
    public WorkProfession selectWorkProfessionById(Long id);

    /**
     * 查询专业列表
     *
     * @param workProfession 专业
     * @return 专业集合
     */
    public List<WorkProfession> selectWorkProfessionList(WorkProfession workProfession);

    /**
     * 新增专业
     *
     * @param workProfession 专业
     * @return 结果
     */
    public int insertWorkProfession(WorkProfession workProfession);

    /**
     * 修改专业
     *
     * @param workProfession 专业
     * @return 结果
     */
    public int updateWorkProfession(WorkProfession workProfession);

    /**
     * 删除专业
     *
     * @param id 专业主键
     * @return 结果
     */
    public int deleteWorkProfessionById(Long id);

    /**
     * 批量删除专业
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkProfessionByIds(Long[] ids);
}
